<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<input type="text" name="param"> <br>
<button onclick="queue1()">将参数发送到queue1</button>
<br>
<button onclick="queue2()">将参数发送到queue2</button>
<br>
<button onclick="topic1()">将参数发送到topic1</button>
<br>
<button onclick="topic2()">将参数发送到topic2</button>
<br>
<script src="jquery.min.js"></script>
<script>
    function queue1() {
        $.get("queue1?param=" + $("input[name='param']").val(), function (response) {
        });
    }
    function queue2() {
        $.get("queue2?param=" + $("input[name='param']").val(), function (response) {
        });
    }
    function topic1() {
        $.get("topic1?param=" + $("input[name='param']").val(), function (response) {
        });
    }
    function topic2() {
        $.get("topic2?param=" + $("input[name='param']").val(), function (response) {
        });
    }
</script>
</body>
</html>
